<template>
  <div class="not-found-container">
    <div class="background-elements">
      <div class="circle"></div>
      <div class="square"></div>
      <div class="triangle"></div>
    </div>
    
    <div class="content">
      <div class="error-code animate-float">404</div>
      <h1 class="title">页面消失在了数字宇宙中</h1>
      <p class="description">
        我们尝试寻找您请求的页面，但它似乎已经逃逸到另一个维度。
        <br>
        或许您可以返回主页重新开始旅程
      </p>
      <router-link to="/" class="home-button">
        <span>返回安全地带</span>
        <svg class="arrow" viewBox="0 0 24 24">
          <path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/>
        </svg>
      </router-link>
    </div>
  </div>
</template>

<style scoped lang="scss">
.not-found-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.background-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;

  .circle, .square, .triangle {
    position: absolute;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
  }

  .circle {
    width: 200px;
    height: 200px;
    background: #ff6b6b;
    border-radius: 50%;
    top: 20%;
    left: 10%;
  }

  .square {
    width: 150px;
    height: 150px;
    background: #4ecdc4;
    top: 60%;
    right: 15%;
    transform: rotate(15deg);
  }

  .triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173.2px solid #ffe66d;
    top: 30%;
    right: 25%;
  }
}

.content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 800px;

  .error-code {
    font-size: 12rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
  }

  .title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
  }

  .description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
  }

  .home-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);

    &:hover {
      background: rgba(255, 255, 255, 0.25);
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

      .arrow {
        transform: translateX(3px);
      }
    }

    span {
      margin-right: 0.8rem;
    }

    .arrow {
      width: 20px;
      height: 20px;
      fill: currentColor;
      transition: transform 0.3s ease;
    }
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
  .error-code {
    font-size: 8rem !important;
  }
  
  .title {
    font-size: 1.5rem !important;
  }
  
  .description {
    font-size: 1rem !important;
  }
}
</style>